<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
use Illuminate\Support\Facades\DB;

class TCompanycnfo extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('t_companycnfo', function (Blueprint $table) {
             $table->engine = 'MyISAM';
             $table->charset = 'utf8';
             $table->collation = 'utf8_general_ci';
            // CONTENT
            $table->increments('Co_ID')->nullable(false)->comment('');
			$table->string('Co_Name', 60)->nullable(false)->default('')->comment('');
			$table->string('Co_Profile', 100)->nullable()->default('')->comment('');
			$table->string('Co_OwnedArea', 60)->nullable()->default('')->comment('');
			$table->string('Co_Note', 60)->nullable()->default('')->comment('');
			$table->string('Co_ConnectionsNumber', 60)->nullable()->default('')->comment('');
			$table->string('Co_Logo', 100)->nullable()->default(null)->comment('');
			$table->string('Co_Logo_Text', 100)->nullable()->default(null)->comment('');
			$table->timestamp('created_at')->nullable()->comment('');
			$table->timestamp('updated_at')->nullable()->comment('');
			$table->boolean('is_default')->nullable()->default(0)->comment('默认显示项目 0=不是 1=是');
			
        });

        
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('t_companycnfo');
    }
}
